/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



/**
 *
 * @author RAUL
 */
public class Color {

    public static Color lightGray = new Color(0xc0c0c0);
    public static Color lightPurple = new Color(0xb000ff);
    public static Color black = new Color(0x000000);
    public static Color gray = new Color(0x808080);
    public static Color blue = new Color(0x0000ff);
    public static Color red = new Color(0xff0000);
    public static Color yellow = new Color(0xffff00);
    public static Color white = new Color(0xffffff);
    public static Color orange = new Color(0xffc800);
    public static Color green = new Color(0x00ff00);
    public static Color purple = new Color(0x8000c0);
    public static Color darkCyan = new Color(0x00b2b2);
    public static Color pink = new Color(0xffafaf);
    public static Color darkGray = new Color(0x404040);
    public static Color darkGreen = new Color(0x00b200);
    public static Color darkOrange = new Color(0xb28c00);
    public static Color darkPurple = new Color(0x500080);
    public static Color darkRed = new Color(0xb20000);
    private int rgb;

    private Color(int rgb) {
        this.rgb = rgb;
    }

    public Color brighter() {
        if (this == lightGray) {
            return white;
        }

        if (this == gray) {
            return lightGray;
        }

        if (this == darkGreen) {
            return green;
        }

        if (this == blue) {
            return darkCyan;
        }

        if (this == red) {
            return pink;
        }

        if (this == yellow) {
            return white;
        }

        if (this == orange) {
            return yellow;
        }

        if (this == green) {
            return yellow;
        }

        if (this == purple) {
            return lightPurple;
        }

        return white;
    }

    public Color darker() {
        if (this == lightGray) {
            return gray;
        }

        if (this == gray) {
            return darkGray;
        }

        if (this == darkGreen) {
            return darkGray;
        }

        if (this == blue) {
            return darkGray;
        }

        if (this == red) {
            return darkRed;
        }

        if (this == yellow) {
            return orange;
        }

        if (this == orange) {
            return darkOrange;
        }

        if (this == green) {
            return darkGreen;
        }

        if (this == purple) {
            return darkPurple;
        }

        return darkGray;
    }

    public int getRGB() {
        return rgb;
    }


}
